package message;

import java.io.Serializable;
/**
 * this class represent the massage "SEND_FILE"
 * implement the interface message
 * @author ran
 *
 */
public class SendFile implements Message,Serializable{
	/**
	 * default serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	String filePath;
	String fileName;
	long checkSum;
	FileWasChanged fileWasChanged;
	//getters and setters
	public FileWasChanged getFileWasChanged() {
		return fileWasChanged;
	}

	public void setFileWasChanged(FileWasChanged fileWasChanged) {
		this.fileWasChanged = fileWasChanged;
	}

	public long getCheckSum() {
		return checkSum;
	}

	public void setCheckSum(long checkSum) {
		this.checkSum = checkSum;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public SendFile(String filePath, String fileName, long checkSum, FileWasChanged fileWasChanged) {
		this.filePath = filePath;
		this.fileName = fileName;
		this.checkSum = checkSum;
		this.fileWasChanged=fileWasChanged;
	}
	
	/**
	 * @Override getType method in Message interface
	 */
	public MessageType getType() {
		return MessageType.SEND_FILE;
	}
}
